package laowan;
/**
 * 图书类
 */
public class Book implements Comparable {
    public String name;
    public String status;
    public String date;
    public int count;

//    //@Override
//    public int compareTo(Object o){
//        Book t = (Book)o;
//        return this.count - t.count;
//    }

    @Override
    public int compareTo(Object o) {
        //return Double.compare(salary,o.salary);
        Book t = (Book)o;
        return Double.compare(this.count,t.count);
    }
}
